package com.sxpi.zixun.common.ex;


import com.sxpi.zixun.common.enums.AdminResultInterface;

/**
 * @Author: 董伟豪
 * @Date: 2022/6/10 15:56
 */
public class PugBusinessException extends RuntimeException {

    private Integer code;
    private String msg;

    public PugBusinessException(AdminResultInterface adminResultInterface) {
        super(adminResultInterface.getMsg());
        this.code = adminResultInterface.getCode();
        this.msg = adminResultInterface.getMsg();
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
